package com.itheima.web.controller.ums;

import com.itheima.service.ums.MemberLevelService;
import com.itheima.utils.ResultData;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/memberLevel")
public class MemberLevelController {


    @DubboReference
    private MemberLevelService memberLevelService;

    /**
     * 查询所有会员等级
     * @param defaultStatus
     * @return
     */
    @GetMapping("list")
    public ResultData list(Integer defaultStatus){
        return memberLevelService.defaultStatusList(defaultStatus);
    }
}
